package com.xieyong.mywebsite.service;

import com.github.pagehelper.PageInfo;
import com.xieyong.mywebsite.model.entity.Blog;

import java.util.Date;
import java.util.List;

public interface BlogService {

    Blog getBlogById(Integer id);

    List<Blog> getAllBlog();

    PageInfo<Blog> getBlogPage(Integer pageNum, Integer pageSize, Blog blog, Date startTime, Date endTime);

    void insertBlog(Blog blog);

    void updateBlog(Blog blog);

    void deleteBlog(Integer id);

    void deleteBlogs(List<Integer> ids);
}
